package xps.and.uudaijia.userclient.view.activity;

import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import xps.and.uudaijia.userclient.R;
import xps.and.uudaijia.userclient.util.CommonUtils;
import xps.and.uudaijia.userclient.view.base.BaseActivity;
import xps.and.uudaijia.userclient.view.fragment.CapitalFragment;

public class CapitalActivity extends BaseActivity {
    CapitalFragment orderDaijiaFragment;
    @BindView(R.id.actionbar_iv_back)
    ImageView actionbarIvBack;
    @BindView(R.id.actionbar_tv_title)
    TextView actionbarTvTitle;
    @BindView(R.id.iv_msg)
    ImageView ivMsg;
    @BindView(R.id.tab_container)
    FrameLayout tabContainer;
    String startDate = "";
    String endDate = "";

    @Override
    protected int getLayout() {
        return R.layout.activity_capital;
    }

    @Override
    protected void setData() {

    }

    @Override
    protected void init() {
        ButterKnife.bind(this);
        orderDaijiaFragment = new CapitalFragment();
        actionbarTvTitle.setText("消费明细");
        CommonUtils.replaceFragment(R.id.tab_container, orderDaijiaFragment, getSupportFragmentManager());
        ivMsg.setVisibility(View.GONE);
    }

    @OnClick({R.id.actionbar_iv_back, R.id.iv_msg})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.actionbar_iv_back:
                finish();
                break;
        }
    }

}
